/*
 * Copyright 2007 Stefan Arentz <stefan@arentz.nl>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#import <Foundation/Foundation.h>

@interface NSMutableData (AppendNativeTypes)

- (void) appendChar: (char) v;
- (void) appendUnsignedChar: (unsigned char) v;

- (void) appendInt: (int) v;
- (void) appendSwappedInt: (int) v;

- (void) appendShort: (short) v;
- (void) appendSwappedShort: (short) v;

- (void) appendUnsignedShort: (unsigned short) v;
- (void) appendSwappedUnsignedShort: (unsigned short) v;

- (void) appendUnsignedInt: (unsigned int) v;
- (void) appendSwappedUnsignedInt: (unsigned int) v;

- (void) appendUnsignedLong: (unsigned long) v;
- (void) appendSwappedUnsignedLong: (unsigned long) v;

- (void) appendUnsignedLongLong: (unsigned long long) v;
- (void) appendSwappedUnsignedLongLong: (unsigned long long) v;

- (void) appendDouble: (double) v;
- (void) appendSwappedDouble: (double) v;

- (void) appendFloat: (float) v;
- (void) appendSwappedFloat: (float) v;

- (void) appendCode: (unsigned int) v;
- (void) appendSwappedCode: (unsigned int) v;

@end
